package com.nh.action;

import org.hibernate.Criteria;
import org.hibernate.criterion.Order;

import com.nh.entity.NgUser;

public class UserAccountAction extends BaseAction {
	public String userList() {
		Criteria criteria = this.createCriteria(NgUser.class);
		criteria.addOrder(Order.desc("registerTime"));
		criteria.addOrder(Order.desc("phoneNum"));
		this.queryByPage(criteria, "userAccountAction!userList.action", 10);
		return "userList";
	}
}
